Beispiel #1
0
 public void Init()
 {
     CLILogsTest.SurchargeLogs();
     FileWrap = new FakeFileWrapper();
     Writer   = new FakeSetWriter();
     Set      = new ApiConnectionConfigurationWritter(
         new FakeEnvironmentPathGetter(),
         new FakeFileInformationGetter(),
         Writer,
         FileWrap);
 }
        public void Given_FileWrapper_When_Instantiated_Then_It_Should_Return_Value()
        {
            var wrapper = new FakeFileWrapper();

            var instance = new FileSystemSchemaSink()
            {
                File = wrapper
            };

            instance.BaseLocation.Should().BeEmpty();
            instance.Directory.Should().NotBeNull();
            instance.File.Should().Be(wrapper);
            instance.Encoding.Should().Be(Encoding.UTF8);
        }