Exemple #1
0
            public void Valid_Bac(float validBac)
            {
                var subject = new BloodAlcoholCalculator {
                    Output = new StringWriter()
                };

                subject.BacResults(validBac);

                Assert.That(subject.Output.ToString(),
                            Is.StringContaining("You are legal to drive."));
            }
Exemple #2
0
            public void Invalid_Bac()
            {
                var subject = new BloodAlcoholCalculator {
                    Output = new StringWriter()
                };

                subject.BacResults(0.09f);

                Assert.That(subject.Output.ToString(),
                            Is.StringContaining("It is not legal for you to drive."));
            }