Baseline.Testing.FilesSystem_load_from_file.should_return_empty_instance_when_file_does_not_exist C# (CSharp) Method

should_return_empty_instance_when_file_does_not_exist() private method

        public void should_return_empty_instance_when_file_does_not_exist()
        {
            var fileSystem = new FileSystem();
            const string fileName = "does not exist";

            var result = fileSystem.LoadFromFile<SerializeMe>(fileName);

            result.Name.ShouldBeNull();
            result.Index.ShouldBe(0);
        }