Exemple #1
0
        public void LongestRunOfOnesTest_ShouldPass()
        {
            var longestRunOfOnesTest = new LongestRunOfOnesTest();
            var actual = longestRunOfOnesTest.GetPValue(_testValue);

            Assert.True(actual > EXPECTED_VALUE);
        }
Exemple #2
0
        public void LongestRunOfOnesTest_ReturnsCorrectValue(string input)
        {
            var testValue            = FromOnesAndZeroesToBit(input);
            var longestRunOfOnesTest = new LongestRunOfOnesTest();

            var expected = 0.180598;
            var actual   = longestRunOfOnesTest.GetPValue(testValue);

            Assert.True(AreEqual(expected, actual));
        }