public void ShouldSerializeGroupStyle () { ItemsControl c = new ItemsControl (); Assert.IsFalse (c.ShouldSerializeGroupStyle (), "1"); c.GroupStyle.Add (new GroupStyle ()); Assert.IsTrue (c.ShouldSerializeGroupStyle (), "2"); }