Skip to content

Conversation

denscollo
Copy link
Contributor

Fixes #4103

Description

This PR migrates all Microsoft.Bot.Configuration tests from MSTest to xUnit.

Specific Changes

  • Replaced MSTest packages with xUnit in the .csproj.
  • Changed [TestMethod] to [Fact].
  • Changed Assert.AreEqual to Assert.Equal.
  • Changed Assert.IsNotNull to Assert.NotNull.
  • Changed Assert.IsNull to Assert.Null.
  • Changed Assert.Fail to throw new XunitException.
  • Changed [ExpectedException] to Assert.ThrowsAsync.
  • Improved tests Assertions.

Testing

In the following image there are the passing tests.
image

@denscollo denscollo requested a review from a team as a code owner September 8, 2020 19:49
@denscollo denscollo requested a review from tomlm September 8, 2020 19:49
@mrivera-ms mrivera-ms merged commit c847a88 into microsoft:main Sep 10, 2020
@ceciliaavila ceciliaavila deleted the southworks/update/xunit-migration/configuration branch September 10, 2020 20:43
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.

migrate configuration to xunit
3 participants