How do you unit test your event code? You use Anonymous Delegates
Here's a sample unit test that I've created that makes use of this technique:
public void UpdateTestTimesTest()
object expected = UniSA.UniSAnet.SmartMark.DataAccess.DataItemChangedEventArgs.ChangeType.Update;
object actual = null;
UniSA.UniSAnet.SmartMark.DataAccess.TestComponent.DataItemChanged += delegate(object sender, UniSA.UniSAnet.SmartMark.DataAccess.DataItemChangedEventArgs e)
actual = e.Change;
Test test = UniSA.UniSAnet.SmartMark.DataAccess.TestComponent.GetTest(UnitTestingTestId);
test.MinutesAllowed += 1;
I think I've found a bug in ASP.NET Master Pages - if you try to include any <%= %> tags in a ContentPlaceHolder control on a Master Page, then it doesn't get overidden by the content in the Content control.
Click on the example to see how it works.
January CTP build of Atlas has been released. Nikhil describes the changes from the previous release.
I noticed today that the reports section of our intallation of TFS were not updating - they were still only showing 24th January. Here's the workaround.