예제 #1
0
        public void ErrorIfMultipleValues()
        {
            var sc = new SlotContainer(element);

            Assert.Throws <InvalidOperationException>(() => { sc.GetSlotValue("authorInstitution"); });
        }
예제 #2
0
        public void HandlesSingleValue()
        {
            var sc = new SlotContainer(element);

            Assert.Equal("Hello World", sc.GetSlotValue("authorPerson"));
        }