//[TestCase(10468, 0x005C0A06)] //[TestCase(12832, 0x00131162)] public void GetProcessWindowHandleTest(int processId, int expected) { var process = Process.GetProcessById(processId); Assert.IsNotNull(process); var noxEmulatorProvider = new NoxEmulatorProvider(); var actual = noxEmulatorProvider.GetProcessWindowHandle(process, out Process emulatorProcess).ToInt32(); Assert.That(actual, Is.EqualTo(expected)); }
//[TestCase(10468, true)] //[TestCase(12832, true)] public void CanProvideTest(int processId, bool expected) { var process = Process.GetProcessById(processId); Assert.IsNotNull(process); var noxEmulatorProvider = new NoxEmulatorProvider(); var result = noxEmulatorProvider.CanProvide(process); Assert.That(result, Is.EqualTo(expected)); }