Пример #1
0
    public void FileCopier_Create_WritesFIle()
    {
        var logger = Substitute.For <ILogger <IFileCreator> >();
        var output = Substitute.For <IFileCopy>();

        var sut = new FileCopier(logger);

        sut.Create(output);

        //writer.ReceivedCalls().Should().HaveCount(2);
    }
Пример #2
0
    public void FileCopier_Create_ThrowsWithSnippet()
    {
        var logger = Substitute.For <ILogger <IFileCreator> >();
        var output = Substitute.For <ISnippet>();

        var sut = new FileCopier(logger);

        var act = () => sut.Create(output);

        act.Should().Throw <NotSupportedException>();
    }