public void InvalidDataExceptionThrownWhenInvalidNametableProviden() { Assert.Throws <InvalidDataException>(() => BA2Loader.Load(SharedData.GetDataPath("GeneralHeaderOnly.ba2"))); }
public void Cleanup() { SharedData.CleanupTemp(); }
public void TestKnownInvalidVersion() { Assert.DoesNotThrow( () => BA2Loader.Load(SharedData.GetDataPath("GeneralOneFileInvalidVersion.ba2"), BA2LoaderFlags.IgnoreVersion)); }
public void TestKnownInvalidArchiveType() { Assert.DoesNotThrow( () => BA2Loader.Load(SharedData.GetDataPath("GeneralOneFileInvalidType.ba2"), BA2LoaderFlags.IgnoreArchiveType)); }
public void LoadExceptionThrownWhenArchiveHasInvalidType() { Assert.Throws <BA2LoadException>(() => BA2Loader.Load(SharedData.GetDataPath("GeneralHeaderOnlyInvalidType.ba2"))); }