Exemple #1
0
        public void UuidParser_ParseShouldFail_BecauseInvalidCharacters()
        {
            // Arrange
            UuidParser parser = new UuidParser("1-2-xyz-4-5");

            // Act
            bool successful = parser.Parse(out _);

            // Assert
            Assert.IsFalse(successful);
        }
Exemple #2
0
        public void UuidParser_ParseShouldSucceed()
        {
            // Arrange
            UuidParser parser = new UuidParser("1-2-3-4-5");

            // Act
            bool successful = parser.Parse(out _);

            // Assert
            Assert.IsTrue(successful);
        }
Exemple #3
0
        public void UuidParser_ParseShouldFail_BecauseInvalidLength()
        {
            // Arrange
            UuidParser parser = new UuidParser("1-2-3-4");

            // Act
            bool successful = parser.Parse(out _);

            // Assert
            Assert.IsFalse(successful);
        }