public void TestAProtectedMember() { var testPath = @"C:\SomePath"; if (!Directory.Exists(testPath)) { Directory.CreateDirectory(testPath); } var sut = new TestableRealClass(testPath); Assert.AreEqual(testPath, sut.Path); }
public void TestMethod1() { var testPath = @"C:\SomePath"; if (!Directory.Exists(testPath)) { Directory.CreateDirectory(testPath); } var sut = new TestableRealClass(testPath); AssertThatTheFileContainsExpectedStuff(testPath); }