예제 #1
0
        public void TestNullGuidException()
        {
            // arrange
            var GuidKey = new GuidKey();

            // act
            GuidKey.Validate();
        }
예제 #2
0
        public void TestEmptyGuidException()
        {
            // arrange
            var GuidKey = new GuidKey() { Key = Guid.Empty };

            // act
            GuidKey.Validate();
        }
예제 #3
0
        public void WithValidGuid()
        {
            // arrange
            var GuidKey = new GuidKey() { Key = Guid.NewGuid() };

            // act
            var Result = GuidKey.IsValid();

            // assert
            Assert.That(Result, Is.True);
        }
예제 #4
0
        public void WithNullGuid()
        {
            // arrange
            var GuidKey = new GuidKey();

            // act
            var Result = GuidKey.IsValid();

            // assert
            Assert.That(Result, Is.False);
        }