public void CreateTestMaterials()
        {
            Log.OpenFolder("CreateTestMaterials");

            var materials             = HomeZone.GotoMaterials();
            var materialCount         = materials.ResultColumn.Count;
            var materialsCreatedCount = 0;

            foreach (var material in mMaterialNames)
            {
                if (DuplicateAndSave(material))
                {
                    materialsCreatedCount++;
                }
            }

            materials.ResultColumn.ClearSearch();

            Assert.AreEqual(materialCount + materialsCreatedCount, materials.ResultColumn.Count);

            Log.CloseFolder();

            bool DuplicateAndSave(string materialId)
            {
                var newName = Name2UIT_Name(materialId);

                if (materials.ResultColumn.SelectItem(newName))
                {
                    Log.Warning(newName + " already exists");
                    return(false);     // material already exists
                }

                Log.Info("Duplicate " + materialId);
                materials.ResultColumn.SelectItem(materialId);

                Wait.ActAndWaitForChange(materials.Toolbar.Duplicate, () => materials.ResultColumn.Count);

                var name = Name2UIT_Name(materials.Detail.Id.Value);

                materials.Detail.Id.Value   = name;
                materials.Detail.Name.Value = name;

                materials.Toolbar.SaveShouldBeEnabled();
                materials.Toolbar.Save();
                materials.WaitForDetailOverlayAppear();
                materials.WaitForDetailOverlayDisappear();
                materials.Toolbar.SaveShouldBeDisabled();
                return(true);
            }
        }