Ejemplo n.º 1
0
        public void ColorWriter_GetSetThemeingWithoutThemeing_ThrowsError()
        {
            var reader = new FakeColorReader();

            reader.multiple    = true;
            reader.hasThemeing = false;

            ColorWriter writer = new ColorWriter(reader);

            Assert.Throws(typeof(ColorWriterNoColorException), () => writer.GetSetTheming());
        }
Ejemplo n.º 2
0
        public void ColorWriter_GetSetThemeing_ReturnsCorrectThemeing()
        {
            var reader = new FakeColorReader();

            reader.multiple = true;

            ColorWriter writer = new ColorWriter(reader);

            var res = writer.GetSetTheming();

            Assert.AreEqual("BaseLight", res.Item1);
            Assert.AreEqual("Cobalt", res.Item2);
        }