Code:
Isolate.WhenCalled(() => myFakeObject.Method1).WillReturn("Method1");
...
Isolate.WhenCalled(() => myFakeObject.Method1).WillReturn("Method1");
Hashtable cache = new Hashtable();
MyClass stuff = new MyClass
{
Property1 = "Hello",
Property2 = "World"
}
cache.Add("stuff", stuff);
var londonCustomers = from c in Customers
where (c.City.Equals("London") && c.CreditCardType.Equals("Visa"))
select c;
from c in Customers
where customer.City.Equals("London")
select new { Name = c.Name, PostCode
Private Shared Function CreateSecureString(ByVal str As String) As SecureString
Dim s = New SecureString
For Each c As Char In str
s.AppendChar(c)
Next
Return s
End Function
Leave a comment: