Esempio n. 1
0
        public void ProduceReport()
        {
            // Arrange
            var sut = new SingleResponsibility();

            // Act
            sut.ProduceReport();
        }
Esempio n. 2
0
        public void GetPrinter()
        {
            var sut = new SingleResponsibility();

            // Act
            var printer = sut.GetPrinter(IPAddress.Parse("192.168.0.1"));

            // Assert
            Assert.IsInstanceOf <Printer>(printer);
            Assert.IsNotNull(printer.Address);
            Assert.AreEqual(IPAddress.Parse("192.168.0.1"), printer.Address);
        }