public void TestSetPathOverridesDefaultValue()
        {
            var attribute = new SetCookieAttribute("TestName", "TestValue") { Path = "/MyDomain" };

            Assert.AreEqual("TestName", attribute.Name);
            Assert.AreEqual("TestValue", attribute.Value);
            Assert.AreEqual("/MyDomain", attribute.Path);
        }
        public void TestDefaultConstructorSetsNameAndValue()
        {
            var attribute = new SetCookieAttribute("TestName", "TestValue");

            Assert.AreEqual("TestName", attribute.Name);
            Assert.AreEqual("TestValue", attribute.Value);
            Assert.AreEqual("/", attribute.Path);
        }
        public void TestToStringReturnsValues()
        {
            var attribute = new SetCookieAttribute("TestName", "TestValue") { Path = "/MyDomain" };

            var result = attribute.ToString();

            StringAssert.Contains(result, "Name: TestName");
            StringAssert.Contains(result, "Value: TestValue");
            StringAssert.Contains(result, "Path: /MyDomain");
        }