c# Programming Glossary: assert.isnotnull
JavaScriptSerializer.Deserialize - how to change field names http://stackoverflow.com/questions/1100191/javascriptserializer-deserialize-how-to-change-field-names dataObject serializer.Deserialize DataObject JsonData Assert.IsNotNull dataObject Assert.AreEqual DetailLevel.Low dataObject.DetailLevel.. dataObject serializer.ReadObject ms as DataObject Assert.IsNotNull dataObject Assert.AreEqual low dataObject.DetailLevel Assert.AreEqual..
Protobuf attributes with a hierarchy of generic classes http://stackoverflow.com/questions/1296791/protobuf-attributes-with-a-hierarchy-of-generic-classes Query clone Serializer.DeepClone Query query Assert.IsNotNull clone Assert.AreNotSame clone query Assert.IsInstanceOfType.. Query clone Serializer.DeepClone Query query Assert.IsNotNull clone Assert.AreNotSame clone query Assert.IsInstanceOfType..
Mocking an NHibernate ISession with Moq http://stackoverflow.com/questions/1828878/mocking-an-nhibernate-isession-with-moq mock.Object var result controller.Index as ViewResult Assert.IsNotNull result.ViewData Please note I am pretty sure I could just create..
Unit testing that an event is raised in C# http://stackoverflow.com/questions/248989/unit-testing-that-an-event-is-raised-in-c-sharp e actual e.PropertyName myClass.MyProperty testing Assert.IsNotNull actual Assert.AreEqual MyProperty actual However if I then try..
'Design By Contract' in C# http://stackoverflow.com/questions/260817/design-by-contract-in-c-sharp and wanted to have syntax akin to public string Foo set Assert.IsNotNull value Assert.IsTrue value.Contains bar _foo value I know I..
Rhinomocks - Mocking delegates http://stackoverflow.com/questions/5650804/rhinomocks-mocking-delegates .GetAllMedia serviceInvoker.VerifyAllExpectations Assert.IsNotNull data I am stubbing the service and returning a collection...
Is there a much better way to create deep and shallow clones in C#? http://stackoverflow.com/questions/8025890/is-there-a-much-better-way-to-create-deep-and-shallow-clones-in-c .ToString var deepCopy instance.DeepCopy true Assert.IsNotNull deepCopy Assert.IsFalse ReferenceEquals instance deepCopy Assert.That.. instance.StringValueType deepCopy.StringValueType Assert.IsNotNull deepCopy.ReferenceType Assert.IsFalse ReferenceEquals instance.ReferenceType..
|