public void Add()
        {
            var container = new GraphicStreamContainer();
            Assert.IsNotNull(container);
            Assert.AreEqual(0, container.Count());

            container.Add(new Mock<IGraphicStream>().Object);

            Assert.AreEqual(1, container.Count());
        }
        public void Create_Returns_Stream_And_Adds_Stream()
        {
            var container = new GraphicStreamContainer();

            var usage = GraphicStreamUsage.Normal;
            var data = new[] { 1f, 2f, 3f };
            var stream = container.Create(usage, data);

            Assert.IsNotNull(stream);
            Assert.AreEqual(usage, stream.Description.Usage);
            Assert.AreEqual(data, stream.Data);

            Assert.AreEqual(1, container.Count());
        }