Beispiel #1
0
 protected void MutateAssertPass(IMutateOperationResult result, ulong expectedValue)
 {
     Assert.True(result.Success, "Success was false");
     Assert.Equal(expectedValue, result.Value);
     Assert.True(result.Cas > 0, "Cas was not greater than 0");
     Assert.True((result.StatusCode ?? 0) == 0, "StatusCode was not null or 0");
 }
 protected void MutateAssertPass(IMutateOperationResult result, ulong expectedValue)
 {
     Assert.That(result.Success, Is.True, "Success was false");
     Assert.That(result.Value, Is.EqualTo(expectedValue), "Value was not expected value: " + expectedValue);
     Assert.That(result.Cas, Is.GreaterThan(0), "Cas was not greater than 0");
     Assert.That(result.StatusCode, Is.Null.Or.EqualTo(0), "StatusCode was not null or 0");
 }
 public static void MutateAssertPass(IMutateOperationResult result, ulong expectedValue)
 {
     Assert.That(result.Success, Is.True, "Success was false");
     Assert.That(result.Value, Is.EqualTo(expectedValue), "Value was not expected value: " + expectedValue);
     Assert.That(result.Cas, Is.GreaterThan(0), "Cas was not greater than 0");
     Assert.That(result.StatusCode, Is.Null.Or.EqualTo(0), "StatusCode was not null or 0");
 }
Beispiel #4
0
 protected void MutateAssertFail(IMutateOperationResult result)
 {
     Assert.False(result.Success, "Success was true");
     Assert.Equal((ulong)0, result.Cas);
     Assert.True((result.StatusCode ?? 1) != 0, "StatusCode was 0");
 }
 protected void MutateAssertFail(IMutateOperationResult result)
 {
     Assert.That(result.Success, Is.False, "Success was true");
     Assert.That(result.Cas, Is.EqualTo(0), "Cas 0");
     Assert.That(result.StatusCode, Is.Null.Or.Not.EqualTo(0), "StatusCode was 0");
 }
 public static void MutateAssertFail(IMutateOperationResult result)
 {
     Assert.That(result.Success, Is.False, "Success was true");
     Assert.That(result.Cas, Is.EqualTo(0), "Cas 0");
     Assert.That(result.StatusCode, Is.Null.Or.Not.EqualTo(0), "StatusCode was 0");
 }
Beispiel #7
0
        protected void AreEqual(ulong expectedValue, IMutateOperationResult result)
        {
            ShouldPass(result);

            Assert.Equal(expectedValue, result.Value);
        }