Пример #1
0
        public void ShapeHasAttributesType()
        {
            var           factory  = _serviceProvider.GetService <IShapeFactory>();
            dynamic       foo      = factory.Create("Foo", ArgsUtility.Empty());
            ShapeMetadata metadata = foo.Metadata;

            Assert.Equal("Foo", metadata.Type);
        }
Пример #2
0
        public void ShapeHasAttributesType()
        {
            var           factory  = _container.Resolve <IShapeFactory>();
            dynamic       foo      = factory.Create("Foo", ArgsUtility.Empty());
            ShapeMetadata metadata = foo.Metadata;

            Assert.That(metadata.Type, Is.EqualTo("Foo"));
        }