System.Net.Mime.Tests.ContentDispositionTest.DispositionType_Roundtrip C# (CSharp) Method

DispositionType_Roundtrip() private method

private DispositionType_Roundtrip ( ) : void
return void
        public static void DispositionType_Roundtrip()
        {
            var cd = new ContentDisposition();

            Assert.Equal("attachment", cd.DispositionType);
            Assert.Empty(cd.Parameters);

            cd.DispositionType = "hello";
            Assert.Equal("hello", cd.DispositionType);

            cd.DispositionType = "world";
            Assert.Equal("world", cd.DispositionType);

            Assert.Equal(0, cd.Parameters.Count);
        }