コード例 #1
0
        public void TryCreate_WithInvalidPath_ReturnsFalse()
        {
            const string path    = ":\u0000::";
            var          factory = new PurePathFactory();

            IPurePath tmp;
            var       actual = factory.TryCreate(path, out tmp);

            Assert.IsFalse(actual);
        }
コード例 #2
0
        public void TryCreate_WithInvalidPath_ReturnsFalse()
        {
            const string path = ":\u0000::";
            var factory = new PurePathFactory();

            IPurePath tmp;
            var actual = factory.TryCreate(path, out tmp);

            Assert.IsFalse(actual);
        }
コード例 #3
0
        public void TryCreate_WithValidPath_ReturnsTrue()
        {
            const string path    = "C:\\tmp";
            var          factory = new PurePathFactory();

            IPurePath tmp;
            var       actual = factory.TryCreate(path, out tmp);

            Assert.IsTrue(actual);
        }
コード例 #4
0
        public void TryCreate_WithValidPath_ReturnsTrue()
        {
            const string path = "C:\\tmp";
            var factory = new PurePathFactory();

            IPurePath tmp;
            var actual = factory.TryCreate(path, out tmp);

            Assert.IsTrue(actual);
        }