//[TestCase(8112, 0x00151836)] //[TestCase(14232, 0x001C0738)] public void GetProcessWindowHandleTest(int processId, int expected) { var process = Process.GetProcessById(processId); Assert.IsNotNull(process); var koPlayerEmulatorProvider = new KOPlayerEmulatorProvider(); var actual = koPlayerEmulatorProvider.GetProcessWindowHandle(process, out Process emulatorProcess).ToInt32(); Assert.That(actual, Is.EqualTo(expected)); }
//[TestCase(8112, true)] //[TestCase(14232, true)] public void CanProvideTest(int processId, bool expected) { var process = Process.GetProcessById(processId); Assert.IsNotNull(process); var koPlayerEmulatorProvider = new KOPlayerEmulatorProvider(); var result = koPlayerEmulatorProvider.CanProvide(process); Assert.That(result, Is.EqualTo(expected)); }