-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVersionUpdateTests.cs
More file actions
35 lines (27 loc) · 1.09 KB
/
Copy pathVersionUpdateTests.cs
File metadata and controls
35 lines (27 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Reflection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Qkmaxware.Vm.LR35902;
namespace Qkmaxware.Emulators.Gameboy.Test;
[TestClass]
public partial class VersionUpdateTests : GbTests {
/*[TestMethod]
public void TestGpuToPpu() {
var game = ReadCart("bgbtest");
Gameboy normal = new Gameboy(gpu: new Hardware.Gpu());
normal.LoadCartridge(game);
Gameboy newppu = new Gameboy(gpu: new Hardware.Ppu());
newppu.LoadCartridge(game);
var test_time = TimeSpan.FromSeconds(30);
var fps = 60;
var frames = test_time.TotalSeconds * fps;
AssertState(normal.GetState(), newppu.GetState(), "Frame " + 0 + " differs between implementations");
var frame = 0;
for (; frame <= frames; frame++) {
// Step both systems
normal.DispatchUntilBufferFlush();
newppu.DispatchUntilBufferFlush();
// Compare system states
AssertState(normal.GetState(), newppu.GetState(), "Frame " + frame + " differs between implementations");
}
}*/
}