public void CreateFileGroup_Create_ThrowsWithSnippet()
    {
        var writer = Substitute.For <IFileWriter>();
        var output = Substitute.For <ISnippet>();

        var sut = new CreateFileGroup(writer);

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

        act.Should().Throw <NotSupportedException>();
    }
    public void CreateFileGroup_Create_WritesFile()
    {
        var writer = Substitute.For <IFileWriter>();
        var output = Substitute.For <IFileGroup>();
        var file   = Substitute.For <IFile>();

        output.Files.Returns(new[] { file });

        var sut = new CreateFileGroup(writer);

        sut.Create(output);

        writer.ReceivedCalls().Should().HaveCount(1);
    }