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

should_thrown_when_file_is_not_xml() private method

private should_thrown_when_file_is_not_xml ( ) : void
return void
        public void should_thrown_when_file_is_not_xml()
        {
            var fileSystem = new FileSystem();
            var fileName = Path.GetTempFileName();
            fileSystem.WriteStringToFile(fileName, "not xml!");

            Exception<Exception>.ShouldBeThrownBy(() => fileSystem.LoadFromFile<SerializeMe>(fileName));
        }