Skip to content

Instantly share code, notes, and snippets.

View danielbh's full-sized avatar

Daniel Hollcraft danielbh

View GitHub Profile
FROM resin/raspberrypi3-debian:jessie
ENV INITSYSTEM on
# Add the key for foundation repository
RUN apt-get update
RUN apt-get install wget
RUN wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key -O - | sudo apt-key add -
@danielbh
danielbh / NSubexample.cs
Last active August 29, 2015 14:27
Keeping default implementation for virtual methods
[Test]
public void ShouldCallBaseImplementationForVirtualMember()
{
var testClass = Substitute.ForPartsOf<TestClass>();
testClass.VoidVirtualMethod();
testClass.VoidVirtualMethod();
testClass.VoidVirtualMethod();
Assert.That(testClass.CalledTimes, Is.EqualTo(3));
}