public void ChangeExtension_ExtensionNoPeriod_PeriodAdded() { //Arrange var mockPath = new MockPath(new MockFileSystem()); //Act var result = mockPath.ChangeExtension(TestPath, "doc"); //Assert Assert.AreEqual("C:\\test\\test.doc", result); }
public void ChangeExtension_ExtensionNoPeriod_PeriodAdded() { //Arrange MockPath mockPath = new MockPath(new MockFileSystem()); //Act string result = mockPath.ChangeExtension(s_testPath, "doc"); //Assert Assert.Equal(XFS.Path("C:\\test\\test.doc"), result); }