public void NotNullTest() { AssertPasses(Guid.NewGuid(), AGuid.NotNull()); AssertPasses(Guid.Empty, AGuid.NotNull()); AssertFails(null, AGuid.NotNull()); }
public void NotEqualToTest() { var guid = Guid.NewGuid(); AssertPasses(guid, AGuid.NotEqualTo(Guid.NewGuid())); AssertPasses(guid, AGuid.NotEqualTo(Guid.Empty)); AssertPasses(null, AGuid.NotEqualTo(Guid.NewGuid())); AssertPasses(guid, AGuid.NotEqualTo(null)); AssertFails(null, AGuid.NotEqualTo(null)); AssertFails(guid, AGuid.NotEqualTo(guid)); }
public void EqualToTest() { var guid = Guid.NewGuid(); AssertPasses(guid, AGuid.EqualTo(guid)); AssertPasses(Guid.Parse(guid.ToString()), AGuid.EqualTo(guid)); AssertPasses(Guid.Empty, AGuid.EqualTo(Guid.Empty)); AssertFails(null, AGuid.EqualTo(Guid.NewGuid())); AssertFails(Guid.NewGuid(), AGuid.EqualTo(Guid.NewGuid())); AssertFails(Guid.Empty, AGuid.EqualTo(Guid.NewGuid())); }
public void InOrderAtLeastPrimitiveGuidItemsPass() { System.Collections.Generic.IEnumerable <Guid> list = new System.Collections.Generic.List <Guid> (); if (!typeof(System.Collections.Generic.IEnumerable <Guid>).IsInstanceOfType(list)) { throw new ArgumentException("types don't match"); } Guid g = Guid.NewGuid(); AssertPasses( Items(g, Guid.NewGuid()), AList.InOrder().WithAtLeast(AGuid.EqualTo(g)) ); }
public ANotification Id(Guid?val) { Id(AGuid.EqualTo(val)); return(this); }
public ANotificationQuery IdNull() { Id(AGuid.Null()); return(this); }
public ANotificationQuery Id(System.Guid?expect) { Id(AGuid.EqualTo(expect)); return(this); }
public ANotificationQuery AccountIdNull() { AccountId(AGuid.Null()); return(this); }
public ATestDto MyNullGuidPropNull() { MyNullGuidProp(AGuid.Null()); return(this); }
public ATestDto MyNullGuidProp(System.Guid?expect) { MyNullGuidProp(AGuid.EqualTo(expect)); return(this); }
public void NotEmptyTest() { AssertPasses(Guid.NewGuid(), AGuid.NotEmpty()); AssertFails(Guid.Empty, AGuid.NotEmpty()); }