public void should_throw_when_file_does_not_exist() { var fileSystem = new FileSystem(); const string fileName = "does not exist"; typeof(ApplicationException).ShouldBeThrownBy(() => fileSystem.LoadFromFileOrThrow<SerializeMe>(fileName)); }
public void load_from_file_or_throw_shuld_throw_when_file_does_not_exist() { var fileSystem = new FileSystem(); const string fileName = "does not exist"; Exception<Exception>.ShouldBeThrownBy(() => fileSystem.LoadFromFileOrThrow<SerializeMe>(fileName)); }