public C_Parameterized_Test_With_Properties(SheepishTestCase testCase)
 {
     this.testCase = testCase;
     isSheepBleat  = Sheepish.IsSheepBleat(testCase.Text);
 }
Пример #2
0
 public void SheepBleatDetection(SheepishTestCase testCase) =>
 Assert.AreEqual(
     Regex.IsMatch(testCase.Text, @"^baa+$"),
     Sheepish.IsSheepBleat(testCase.Text), testCase.Reason);
Пример #3
0
 [Property(Arbitrary = new[] { typeof(G_Property_Tests_With_Oracle) })] // *
 public void SheepBleatAssertion(SheepishTestCase nearlySheepish) =>
 Assert.AreEqual(
     Regex.IsMatch(nearlySheepish.Text, @"^baa+$"),
     Sheepish.IsSheepBleat(nearlySheepish.Text));
Пример #4
0
 [Property(Arbitrary = new[] { typeof(G_Property_Tests_With_Oracle) })] // *
 public bool SheepBleatExpression(SheepishTestCase nearlySheepish) =>
 Regex.IsMatch(nearlySheepish.Text, @"^baa+$")
 == Sheepish.IsSheepBleat(nearlySheepish.Text);
Пример #5
0
 public void SheepBleatDetection(SheepishTestCase testCase) =>
 Assert.AreEqual(
     testCase.IsSheepBleat,
     Sheepish.IsSheepBleat(testCase.Text), testCase.Reason);
Пример #6
0
 public D_Parameterized_Test_With_Generators(SheepishTestCase testCase)
 {
     this.testCase = testCase;
     isSheepBleat  = Sheepish.IsSheepBleat(testCase.Text);
 }