Ejemplo n.º 1
0
        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.");
        }
Ejemplo n.º 2
0
 /// <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))
 {
 }