public Type CardinalCompassPointFactoryTester(string typeId)
        {
            var factory      = new CardinalCompassPointFactory();
            var compassPoint = factory.Get(typeId);

            return(compassPoint?.GetType());
        }
        public void CannotPassInvalidCharacterToCompassPointFactoryGet()
        {
            const string TypeId       = "n";
            var          factory      = new CardinalCompassPointFactory();
            TestDelegate testDelegate = () => factory.Get(TypeId);

            Assert.That(testDelegate, Throws.TypeOf <CardinalCompassPointFactory.InvalidTypeIdentifierException>());
        }