Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirler committed May 13, 2024
1 parent c0cd92f commit aa859f2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ public void WritesRequestExecutorBody()
Assert.Contains("var requestInfo", result);
Assert.Contains("var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>", result);
Assert.Contains("<exception cref=", result);
Assert.Contains("{\"4XX\", Error4XX.CreateFromDiscriminatorValue},", result);
Assert.Contains("{\"5XX\", Error5XX.CreateFromDiscriminatorValue},", result);
Assert.Contains("{\"401\", Error401.CreateFromDiscriminatorValue},", result);
Assert.Contains("{ \"4XX\", Error4XX.CreateFromDiscriminatorValue },", result);
Assert.Contains("{ \"5XX\", Error5XX.CreateFromDiscriminatorValue },", result);
Assert.Contains("{ \"401\", Error401.CreateFromDiscriminatorValue },", result);
Assert.Contains("SendAsync", result);
Assert.Contains($"{ReturnTypeName}.CreateFromDiscriminatorValue", result);
Assert.Contains(AsyncKeyword, result);
Expand Down Expand Up @@ -514,7 +514,7 @@ public void WritesRequestExecutorBodyForCollection()
var result = tw.ToString();
Assert.Contains("var requestInfo", result);
Assert.Contains("var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>", result);
Assert.Contains("{\"4XX\", Error4XX.CreateFromDiscriminatorValue},", result);
Assert.Contains("{ \"4XX\", Error4XX.CreateFromDiscriminatorValue },", result);
Assert.Contains("SendCollectionAsync", result);
Assert.Contains("return collectionResult?.ToList()", result);
Assert.Contains($"{ReturnTypeName}.CreateFromDiscriminatorValue", result);
Expand Down Expand Up @@ -1137,8 +1137,8 @@ public void WritesDeSerializerBody()
Assert.Contains("GetCollectionOfObjectValues", result);
Assert.Contains("GetEnumValue", result);
Assert.Contains("definedInParent", result, StringComparison.OrdinalIgnoreCase);
Assert.Contains("{\"DummyUCaseProp", result);
Assert.Contains("{\"dummyProp", result);
Assert.Contains("{ \"DummyUCaseProp", result);
Assert.Contains("{ \"dummyProp", result);
}
[Fact]
public void WritesInheritedSerializerBody()
Expand Down

0 comments on commit aa859f2

Please sign in to comment.