Skip to content

Commit

Permalink
added test for exception in errorlist #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Meir017 committed Oct 22, 2017
1 parent 1944261 commit 7ed88f7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/FluentAssertions.Analyzers.Tests/GenerateCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static class GenerateCode
.AppendLine(" public class TestComplexClass")
.AppendLine(" {")
.AppendLine(" public bool BooleanProperty { get; set; }")
.AppendLine(" public string Message { get; set; }")
.AppendLine(" }")
.AppendLine(" class Program")
.AppendLine(" {")
Expand Down
18 changes: 18 additions & 0 deletions src/FluentAssertions.Analyzers.Tests/Tips/SanityTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FluentAssertions.Analyzers.Tests.Tips
{
[TestClass]
public class SanityTests
{
[TestMethod]
[NotImplemented(Reason = "https://github.com/fluentassertions/fluentassertions.analyzers/issues/10")]
public void AssertionCallMultipleMethodWithTheSameNameAndArguments()
{
const string assertion = "actual.Should().Contain(d => d.Message.Contains(\"a\")).And.Contain(d => d.Message.Contains(\"c\"));";
var source = GenerateCode.EnumerableAssertion(assertion);

DiagnosticVerifier.VerifyCSharpDiagnosticUsingAllAnalyzers(source);
}
}
}

0 comments on commit 7ed88f7

Please sign in to comment.