示例#1
0
        public void Cannot_compare_if_the_value_is_not_a_guid()
        {
            var valueComparer = new GuidValueComparer();

            valueComparer.CanCompare("John Galt").ShouldBeFalse();
            valueComparer.CanCompare(1).ShouldBeFalse();
            valueComparer.CanCompare(3.14).ShouldBeFalse();
        }
示例#2
0
        public void Can_compare_if_the_value_is_a_guid()
        {
            var valueComparer = new GuidValueComparer();

            valueComparer.CanCompare(new Guid()).ShouldBeTrue();
            valueComparer.CanCompare(new Guid("{6EFE6DA0-A8B4-4E71-8329-49819C409227}"))
            .ShouldBeTrue();
        }