コード例 #1
0
        public void get_the_description_if_the_reader_is_null()
        {
            var choice = new ReaderChoice("text/json", null);

            var description = Description.For(choice);

            description.Title.ShouldBe("Unable to select a reader for content-type 'text/json'");
        }
コード例 #2
0
        public void get_the_description_if_the_reader_is_not_null()
        {
            var choice = new ReaderChoice("text/json", new ClassWithTitle());

            var description = Description.For(choice);

            description.Title.ShouldBe("Selected reader 'Some title' for content-type 'text/json'");
        }