public void FromProcessId() { // Arrange var process = Resources.ProcessTest; // Act var ret = ApplicationFinder.FromProcessId(process.Id); // Assert Assert.AreEqual(process.Id, ret.Id, "Both processes are not equal."); }
/// <summary> /// Initializes a new instance of the <see cref="MemorySharp"/> class. /// </summary> /// <param name="processId">Process id of the process to open.</param> public MemorySharp(int processId) : this(ApplicationFinder.FromProcessId(processId)) { }