public void SizePropertyViewModelTest() { // Since this property viewmodel commits its change as soon as the change is made, the commitChange method // is executed, which requires a working IoC IoC.GetInstance = IoCAggregator; SizePropertyViewModel en = new SizePropertyViewModel(); ColorInputNode clr = new ColorInputNode(); PropertyDescriptor pd = TypeDescriptor.GetProperties(clr).Find("Size", true); en.Initialize(clr, pd); en.Height = 37; en.Width = 13; Assert.Equal(new YuvKA.VideoModel.Size(13, 37).Height, clr.Size.Height); Assert.Equal(new YuvKA.VideoModel.Size(13, 37).Width, clr.Size.Width); }