public void DummyOutputPort_WithWrittenLOW_ShouldBeInternal_LOW() { var dummyPort = new TestOutputPort(); dummyPort.Write(BinaryState.Low); dummyPort.GetInternalState().ShouldBeEquivalentTo(BinaryState.Low); }
public void DummyOutputPort_WithWrittenHigh_ShouldBeInternal_HIGH() { var dummyPort = new TestOutputPort(); dummyPort.Write(BinaryState.High); dummyPort.GetInternalState().ShouldBeEquivalentTo(BinaryState.High); }
public void DummyOutputPort_WithWrittenHigh_ShouldBeInternal_HIGH() { var dummyPort = new TestOutputPort(); dummyPort.Write(BinaryState.High); Assert.AreEqual(BinaryState.High, dummyPort.GetInternalState()); }
public void INVERTED_DummyOutputPort_WithWrittenHIGH_ShouldBeInternal_LOW() { var dummyPort = new TestOutputPort(); dummyPort = (TestOutputPort)dummyPort.WithInvertedState(); dummyPort.Write(BinaryState.High); dummyPort.GetInternalState().ShouldBeEquivalentTo(BinaryState.Low); }
public void DummyOutputPort_WithWrittenLOW_ShouldBeInternal_LOW() { var dummyPort = new TestOutputPort(); dummyPort.Write(BinaryState.Low); Assert.AreEqual(BinaryState.Low, dummyPort.GetInternalState()); }
public void INVERTED_DummyOutputPort_WithWrittenLOW_ShouldBeInternal_HIGH() { var dummyPort = new TestOutputPort(); dummyPort = (TestOutputPort)dummyPort.WithInvertedState(); dummyPort.Write(BinaryState.Low); Assert.AreEqual(BinaryState.High, dummyPort.GetInternalState()); }
public void CreateLibraryCatalog_TestJorgens_Success() { // Assemble var computerName = "TestComputerName"; var sourceDirectory = @"..\..\..\Jörgens"; var crawler = new PhotoLibraryCrawler(); var service = new CatalogLibraryService(crawler, null); var outputPort = new TestOutputPort(); // Act var catalog = service.CreateLibraryCatalog(computerName, sourceDirectory, outputPort); // Assert Assert.Equal(11, catalog.Directories.Count); Assert.Equal(51, catalog.Photos.Count); // 52 files of which one is not a photo }