public void WhenAppendContents_ThenThrowsNotSupportedException() { IFile roFile = GetReadOnlyFileDecorator(); Assert.Throws <NotSupportedException>(() => roFile.AppendContents("anything")); }