Skip to content

Conversation

denscollo
Copy link
Contributor

Addresses #4349

Description

This PR fixes the xUnit1013, xUnit2000, xUnit2004, xUnit2009, xUnit2013, and xUnit2017 issues in TemplatesTest file of Microsoft.Bot.Builder.LanguageGeneration.Tests project.

image

Specific Changes

  • TemplatesTest
    - Fixed xUnit1013 by marking the TestMemoryAccessPath method as fact (this test was ignored and it's now executed).
    - Fixed xUnit2000 by swapping the arguments of the Assert.Equal statements.
    - Fixed xUnit2004 by replacing Assert.Equal with Assert.True to check for boolean conditions.
    - Fixed xUnit2009 by replacing the Assert.True with Assert.Contains when checking for substrings.
    - Fixed xUnit2013 by changing the Assert.Equal with Assert.Single or Assert.Empty when checking for collections length.
    - Fixed xUnit2017 by changing the Assert.True with Assert.Contains to check if a value exists on a collection.
    - Use var instead of a specific type in variables.
    - Removed unused variable templates in TestInjectLG.
    - Fixed typos.

Testing

The next image shows the tests passing after the changes made:
image

@denscollo denscollo requested a review from a team as a code owner September 1, 2020 17:18
@denscollo denscollo requested a review from luhan2017 September 1, 2020 17:18
@mrivera-ms mrivera-ms merged commit d8833c5 into microsoft:main Sep 9, 2020
@ceciliaavila ceciliaavila deleted the southworks/fix/xunit-issues/templates-test branch September 11, 2020 12:22
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.

4 participants