public void ConstructorTest() { INoiseProvider noiseProvider = new ConstantNoiseProvider(); LsbStorageProvider storageProvider = new LsbStorageProvider(noiseProvider); Assert.AreEqual(noiseProvider, storageProvider.NoiseProvider); }
public void NextTest_High() { ConstantNoiseProvider noiseProvider = new ConstantNoiseProvider(true); int trueCount = 0; for (int i = 0; i < 200; i++) { if (noiseProvider.Next()) { trueCount++; } } Assert.AreEqual(200, trueCount); }