예제 #1
0
        public void NormalGuidEmptyOrNullTest()
        {
            Guid guid1 = Guid.Empty;
            Guid guid2 = default;

            GuidJudge.IsNullOrEmpty(guid1).ShouldBeTrue();
            GuidJudge.IsNullOrEmpty(guid2).ShouldBeTrue();
        }
예제 #2
0
        public void NullableGuidEmptyOrNullTest()
        {
            Guid?guid1 = Guid.Empty;
            Guid?guid2 = null;
            Guid?guid3 = default;

            GuidJudge.IsNullOrEmpty(guid1).ShouldBeTrue();
            GuidJudge.IsNullOrEmpty(guid2).ShouldBeTrue();
            GuidJudge.IsNullOrEmpty(guid3).ShouldBeTrue();
        }
예제 #3
0
        public void NormalGuidWithValueTest()
        {
            Guid guid = Guid.NewGuid();

            GuidJudge.IsNullOrEmpty(guid).ShouldBeFalse();
        }