Exemple #1
0
 private static void CheckMatches <TServerData>(ResponseSpecification clientResponseSpecification)
 {
     FieldMismatch[] actual;
     ResponseSpecification.CheckClientMatchesServer <TServerData>(clientResponseSpecification, out actual)
     .Should().BeTrue();
     actual.Should().BeEmpty();
 }
        private static void CheckNotMatchesByAttribute <TClientData>(params string[] paths)
        {
            FieldMismatch[] actual;
            ResponseSpecification.CheckClientMatchesServer <TClientData>(out actual).Should().BeFalse();
            var expected = paths.Select(p => new FieldMismatch(p, string.Empty)).ToArray();

            actual.ShouldAllBeEquivalentTo(expected, opt => opt.Excluding(x => x.Message));
        }
 private static void CheckMatchesByAttribute <TClientData>()
 {
     FieldMismatch[] actual;
     ResponseSpecification.CheckClientMatchesServer <TClientData>(out actual).Should().BeTrue();
     actual.Should().BeEmpty();
 }