Esempio n. 1
0
        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))
                );
        }
Esempio n. 3
0
 public ANotification Id(Guid?val)
 {
     Id(AGuid.EqualTo(val));
     return(this);
 }
Esempio n. 4
0
 public ANotificationQuery Id(System.Guid?expect)
 {
     Id(AGuid.EqualTo(expect));
     return(this);
 }
Esempio n. 5
0
 public ATestDto MyNullGuidProp(System.Guid?expect)
 {
     MyNullGuidProp(AGuid.EqualTo(expect));
     return(this);
 }