public void IfNotChangedThrowsOnEmptyETag()
        {
            IResourceWithETag aResourceWithETag = new AResourceWithETag()
            {
                ETag = string.Empty
            };

            Assert.Throws <ArgumentException>(() => AccessCondition.IfNotChanged(aResourceWithETag));
        }
        public void IfNotChangedReturnsIfMatchAccessCondition()
        {
            IResourceWithETag aResourceWithETag = new AResourceWithETag()
            {
                ETag = "IHazETag"
            };

            AccessCondition result = AccessCondition.IfNotChanged(aResourceWithETag);

            Assert.Equal(aResourceWithETag.ETag, result.IfMatch);
            Assert.Null(result.IfNoneMatch);
        }
        public void IfNotChangedThrowsOnNullETag()
        {
            IResourceWithETag aResourceWithETag = new AResourceWithETag();

            Assert.Throws <ArgumentNullException>(() => AccessCondition.IfNotChanged(aResourceWithETag));
        }