Posts

Showing posts from September, 2020

Movie Night at the Virtual Cinema: The Incredible Hulk

Image
During the COVID-19 pandemic, I’ve been using  SKYBOX VR  on Oculus Quest to watch movies in a virtual cinema that I didn’t get to see when they were theatrically released. The illusion of sitting in a movie theater is a convincing one, minus any reaction from the (non-existent) audience. It doesn’t change my perception of the films I’ve been watching — I’m just doing this for fun: to whet my appetite for going to the movies, and for a little VR escapism. Warning: Spoilers ahead.   I’d only seen this film once before, on DVD, maybe a year or so after it was released. I remember being surprised when it came out that they were rebooting the Hulk only 5 years after the previous Hulk movie (Ang Lee’s 2003 The Hulk ), though that film had been poorly received, and now I wonder if, had the film been received better, if it would have been considered part of the Marvel Cinematic Universe, or if they still  would have done the reboot. Regardless, on the single previous viewing I’d had of this m

A Rather Embarrassing Reason for the "Expression references a method that does not belong to the mocked object" Exception When Using Moq

I've been using Moq for ages, but today while writing a unit test ran into a runtime exception I'd never had before: Expression references a method that does not belong to the mocked object: mock => mock.GetExpiredCredentials(It.IsAny<DateTime>(), It.IsAny<DateTime>(), It.IsAny<Boolean>()).Returns<IEnumerable`1>(.fakeResults, new[] {  }) I couldn't understand why. The method in question was  on the interface, and if it wasn't, the code shouldn't have even compiled , yet it did. Even more confusing was that, when I Googled the error message, all the results seemed to point toward extension methods , and this method was not  an extension method. It turns out, what I had done was to misplace my parentheses (facepalm)! Here's what my original take looked like: _credentialServiceMock      .Setup(mock =>            mock.GetExpiredCredentials(                It.IsAny<DateTime>(),                 It.IsAny<DateTime>(),         

Movie Night at the Virtual Cinema: Judgment at Nuremberg

Image
  During the COVID-19 pandemic, I’ve been using  SKYBOX VR  on Oculus Quest to watch movies in a virtual cinema that I didn’t get to see when they were theatrically released. The illusion of sitting in a movie theater is a convincing one, minus any reaction from the (non-existent) audience. It doesn’t change my perception of the films I’ve been watching — I’m just doing this for fun: to whet my appetite for going to the movies, and for a little VR escapism. Warning: Spoilers ahead.   This movie was from before my time and marks the first time I watched a film using SKYBOX VR that I'd never seen before. The film is a fictionalized account of the  Judges' Trial , which was a trial which took place in Germany post-World War II in which German judges were tried for their part in the atrocities of the Nazi party. Released in 1961, it stars several big-name Hollywood stars of the era, and is part of the United States National Film Registry. I have to admit that I have only a passing