Esempio n. 1
0
        public void IsFileExist_Return_True_If_New_Create_File()
        {
            sut = new FileWrapper(new FileHelper());
            using(File.Create(fileName))
            {

            }
            Assert.IsTrue(sut.IsFileExist(fileName));
        }
Esempio n. 2
0
        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));
        }