Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revive unit test project #117

Merged
merged 4 commits into from
Jun 13, 2024
Merged

Revive unit test project #117

merged 4 commits into from
Jun 13, 2024

Conversation

YoshiRulz
Copy link
Contributor

@YoshiRulz YoshiRulz commented May 14, 2024

Switched to new format as I did for the main project in #96, but all at once this time because it's relatively simple. I had to bump the TFM to net462 for one of the NuGet packages, but I don't expect that will ever be an issue. (And I learned .NET Framework tests run on Linux.)
Explicitly pinned C# version at 7.1, though it could have been 7.0 but for one file. (When .NET Framework 4.6.1 released the latest would have been 6, but obviously the project adopted 7.0 soon after because tuples are used heavily.) I suggest you resolve all the existing warnings—and maybe add more Analyzers and fix their warnings too—before switching to 12 and adopting new features. Maybe you could go for 7.3 immediately, but 8 would be huge in terms of how much of the codebase you'll want to touch.

@Ununununununun
Copy link

cp cs

Comment on lines -3 to -12
<Import Project="..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{14542232-E0B6-4FDD-8B35-8F3EAE889C51}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>STROOPUnitTests</RootNamespace>
<AssemblyName>STROOPUnitTests</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cp f

@YoshiRulz
Copy link
Contributor Author

same

<RootNamespace>STROOPUnitTests</RootNamespace>
<AssemblyName>STROOPUnitTests</AssemblyName>
<TargetFramework>net462</TargetFramework>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main project targets 4.6.1. Does this break anything if we switch the unit test project to that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind if we have to switch to v4.6.2, only reason is its just another framework to install.

Copy link
Contributor Author

@YoshiRulz YoshiRulz Jun 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figured it out! Would you believe this is the second time this week I've tracked down the cause of a bug as "MS decided this shouldn't work with certain TFMs anymore" with no other reason and no docs.

@danebou danebou merged commit 8417429 into SM64-TAS-ABC:dev Jun 13, 2024
@YoshiRulz YoshiRulz deleted the pin-down branch June 14, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants