Esempio n. 1
0
        public void GetSelfOnResource_WithValidResourceWithNullLinks_ExpectException()
        {
            var resource = new TestResource();

            var ex = Should.Throw <MissingLinkException>(() => resource.GetSelf());

            _logger.WriteLine(ex.Message);
        }
Esempio n. 2
0
        public void GetSelfOnResource_WithValidResourceWithEmptyLinks_ExpectException()
        {
            var resource = new TestResource
            {
                Links = new HyperMediaLinks()
            };

            var ex = Should.Throw <MissingLinkException>(() => resource.GetSelf());

            _logger.WriteLine(ex.Message);
        }