Example #1
0
        public void IsWritingSystemInUse_FieldIsUsingWritingSystem_ReturnsTrue()
        {
            ViewTemplate master = new ViewTemplate();
            Field        field  = new Field();

            field.WritingSystemIds.Add("en");
            master.Fields.Add(field);
            Assert.That(master.IsWritingSystemInUse("en"), Is.True);
        }
Example #2
0
        public void IsWritingSystemInUse_TemplateContainsNoFields_ReturnsFalse()
        {
            ViewTemplate master = new ViewTemplate();

            Assert.That(master.IsWritingSystemInUse("en"), Is.False);
        }