-
Notifications
You must be signed in to change notification settings - Fork 752
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
test: Update to MSTest dogfooding version #19271
base: master
Are you sure you want to change the base?
Changes from 5 commits
154cbec
fd056b8
f8f9828
ba8ef84
4bd85d4
cac67f6
e5c30ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
<Product Condition="'$(UnoRuntimeIdentifier)' != ''">$(AssemblyName) ($(TargetFramework) $(UnoRuntimeIdentifier))</Product> | ||
<CommunityToolkitMvvmVersion>8.2.2</CommunityToolkitMvvmVersion> | ||
<TestingPlatformDotNetTestSupport Condition="'$(IsTestingPlatformApplication)' == 'true'">true</TestingPlatformDotNetTestSupport> | ||
|
||
<!-- Dogfooding feed for MSTest --> | ||
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);https://dnceng.pkgs.visualstudio.com/public/_packaging/test-tools/nuget/v3/index.json</RestoreAdditionalProjectSources> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
|
@@ -64,12 +67,13 @@ | |
<PropertyGroup> | ||
<!-- IMPORTANT!!! KEEP BOTH MSTest and MTP versions in sync --> | ||
<!-- For a given MSTest version, go to https://www.nuget.org/packages/MSTest.TestAdapter/3.7.1#dependencies-body-tab --> | ||
<!-- (replacing 3.7.1 in the url with the MSTest version in question) --> | ||
<!-- (Or, for dogfooding versions, go to https://dnceng.visualstudio.com/public/_artifacts/feed/test-tools/NuGet/MSTest.TestAdapter/overview/3.8.0-preview.25067.5) --> | ||
<!-- (replacing the version in the url with the MSTest version in question) --> | ||
<!-- And look for MTP version in there, and make sure MicrosoftTestingPlatformVersion is the same --> | ||
<!-- Alternatively, migrate to MSTest.Sdk and let it handle the MTP versioning for you --> | ||
<!-- In case of MSTest.Sdk, the TrxReport package will not be needed. It will be added automatically --> | ||
<MSTestVersion>3.7.1</MSTestVersion> | ||
<MicrosoftTestingPlatformVersion>1.5.1</MicrosoftTestingPlatformVersion> | ||
<MSTestVersion>3.8.0-preview.25067.5</MSTestVersion> | ||
<MicrosoftTestingPlatformVersion>1.6.0-preview.25067.5</MicrosoftTestingPlatformVersion> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can setup a canary for that one, once it builds fully, and stay on the stable for the main builds. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, let me know once you set it up please. Meanwhile, I will revert the version change, and I think it should be good to proceed with the rest of the changes? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, part of the changes here are using APIs that are new in 3.8, so this can't get merged with using 3.7.1. |
||
|
||
<SkiaSharpVersion>2.88.7</SkiaSharpVersion> | ||
<!-- TODO: Uncomment when we're net8.0+ to have SamplesApp serve as a good test for SkiaSharp 3 support --> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,30 +15,30 @@ public class Given_EmailRecipient | |
[TestMethod] | ||
public void When_Address_Is_Null() | ||
{ | ||
Assert.ThrowsException<ArgumentNullException>( | ||
Assert.ThrowsExactly<ArgumentNullException>( | ||
() => new EmailRecipient(null)); | ||
} | ||
|
||
[TestMethod] | ||
public void When_Name_Is_Null() | ||
{ | ||
Assert.ThrowsException<ArgumentNullException>( | ||
Assert.ThrowsExactly<ArgumentNullException>( | ||
() => new EmailRecipient("[email protected]", null)); | ||
} | ||
|
||
[TestMethod] | ||
public void When_Address_Set_Null() | ||
{ | ||
var emailRecipient = new EmailRecipient(); | ||
Assert.ThrowsException<ArgumentNullException>( | ||
Assert.ThrowsExactly<ArgumentNullException>( | ||
() => emailRecipient.Address = null); | ||
} | ||
|
||
[TestMethod] | ||
public void When_Name_Set_Null() | ||
{ | ||
var emailRecipient = new EmailRecipient(); | ||
Assert.ThrowsException<ArgumentNullException>( | ||
Assert.ThrowsExactly<ArgumentNullException>( | ||
() => emailRecipient.Name = null); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI microsoft/testfx#135 so you have context why we implemented the analyzer and why to enable it.