Ejemplo n.º 1
0
        public void ChangeExtensionWithNull()
        {
            // Setup
            var file = new TestFile(@"x:\directory\File.txt");

            // Execute
            var result = file.ChangeExtension(a_extension: null);
        }
Ejemplo n.º 2
0
        public void ChangeExtensionWithNull()
        {
            // Setup
            var file = new TestFile(@"x:\directory\File.txt");

            // Execute
            var result = file.ChangeExtension(a_extension: null);
        }
Ejemplo n.º 3
0
        public void ChangeExtension()
        {
            // Setup
            var file = new TestFile(@"x:\directory\File.txt");

            // Execute
            var result = file.ChangeExtension("jpg");

            Assert.AreEqual("File.jpg", result.Name);
            Assert.AreEqual(@"x:\directory\File.jpg", result.Path);
        }
Ejemplo n.º 4
0
        public void ChangeExtension()
        {
            // Setup
            var file = new TestFile(@"x:\directory\File.txt");

            // Execute
            var result = file.ChangeExtension("jpg");

            Assert.AreEqual("File.jpg", result.Name);
            Assert.AreEqual(@"x:\directory\File.jpg", result.Path);
        }