Exemplo n.º 1
0
        public new void ToString()
        {
            MemoryUsageInfo usage = new MemoryUsageInfo("X", new ByteValue(123), new ByteValue(345), new ByteValue(789));

            Assert.That(
                usage.ToString(),
                Is.EqualTo(
                    string.Format(
                        "X:{0}\tWorking set: {1}{0}\tManaged memory before collect: {2}{0}\tAfter collect: {3}",
                        Environment.NewLine,
                        new ByteValue(123),
                        new ByteValue(345),
                        new ByteValue(789)
                        )));
        }