adapted .NET test