public void OnDeserialized_MonitorNotInitialized_ExpectSuccess() { var observableCollection = new ObservableSet <int>(); MethodInfo onDeserializedMethodInfo = observableCollection.GetType().GetMethod("OnDeserialized", BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); Assert.NotNull(onDeserializedMethodInfo); onDeserializedMethodInfo.Invoke(observableCollection, new object[] { null }); }