public void CreatesDirecotryForLogFileIfItDoesNotExist() { DirectoryServie.Setup(x => x.Exists(It.IsAny <string>())).Returns(false); Writer.Write(LogInfo); DirectoryServie.Verify(x => x.Create(It.IsAny <string>()), Times.Once); }
public void DoesNotCreateDirecotryForLogFileIfItAlreadyExists() { Writer.Write(LogInfo); DirectoryServie.Verify(x => x.Create(It.IsAny <string>()), Times.Never); }