public void IsFileExist_Return_True_If_New_Create_File() { sut = new FileWrapper(new FileHelper()); using(File.Create(fileName)) { } Assert.IsTrue(sut.IsFileExist(fileName)); }
public void Stub_IsFileExist_Return_True_If_New_Create_File() { var fileHelper = new StubFileHelper(); fileHelper.IsNullString = name => false; sut = new FileWrapper(fileHelper); Assert.IsTrue(sut.IsFileExist(fileName)); }