Ejemplo n.º 1
0
        public void ToString_Contains_Item()
        {
            // Arrange
            var systemInformationItem = new SystemInformation { MachineName = Environment.MachineName, Timestamp = DateTime.UtcNow };
            var object1 = new SystemInformationQueueItem(systemInformationItem);

            // Act
            string result = object1.ToString();

            // Assert
            Assert.IsTrue(result.Contains(object1.Item.ToString()));
        }
Ejemplo n.º 2
0
        public void ToString_DoesNotContain_UsedMemoryInGB()
        {
            // Arrange
            var systemInformationItem = new SystemInformation { MachineName = Environment.MachineName, Timestamp = DateTime.UtcNow };
            var object1 = new SystemInformationQueueItem(systemInformationItem) { EnqueuCount = 15 };

            // Act
            string result = object1.ToString();

            // Assert
            Assert.IsFalse(result.Contains(object1.EnqueuCount.ToString()));
        }
        public void ToString_DoesNotContain_UsedMemoryInGB()
        {
            // Arrange
            var systemInformationItem = new SystemInformation { MachineName = Environment.MachineName, Timestamp = DateTime.UtcNow };
            var object1 = new SystemInformationQueueItem(systemInformationItem) { EnqueuCount = 15 };

            // Act
            string result = object1.ToString();

            // Assert
            Assert.IsFalse(result.Contains(object1.EnqueuCount.ToString()));
        }
        public void ToString_Contains_Item()
        {
            // Arrange
            var systemInformationItem = new SystemInformation { MachineName = Environment.MachineName, Timestamp = DateTime.UtcNow };
            var object1 = new SystemInformationQueueItem(systemInformationItem);

            // Act
            string result = object1.ToString();

            // Assert
            Assert.IsTrue(result.Contains(object1.Item.ToString()));
        }