BetterMembership.Tests.Extensions.NameValueCollectionExtensionTests.GivenCollectionWithKeyAsNotBooleanAndNoDefaulWhenGetBooleanThenReturnFalse C# (CSharp) Method

GivenCollectionWithKeyAsNotBooleanAndNoDefaulWhenGetBooleanThenReturnFalse() private method

        public void GivenCollectionWithKeyAsNotBooleanAndNoDefaulWhenGetBooleanThenReturnFalse()
        {
            // arrange
            var testClass = new NameValueCollection { { TestKey, "xx" } };

            // act
            var result = testClass.GetBoolean(TestKey);

            // assert
            Assert.That(result, Is.False);
        }