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 Id(System.Guid?expect) { Id(AGuid.EqualTo(expect)); return(this); }
public ATestDto MyNullGuidProp(System.Guid?expect) { MyNullGuidProp(AGuid.EqualTo(expect)); return(this); }