pose
pose copied to clipboard
Replace any .NET method (including static and non-virtual) with a delegate
Hi, I try used your nuget on my job, replace the static methods doesn't work. I will want replace the static methods in the tests unitarys. I will want adding...
Hi, I've stumbled upon this project looking for exactly this feature for unit testing DateTime.UtcNow (without having to resort to 3rd party libraries like NodaTime etc), have cloned the repository...
Hi! How to call async functions inside Isolate? I get an excepion when running my tests: System.InvalidProgramException : Common Language Runtime detected an invalid program. Thanks.
Hi. Apologies for the radio silence on this project. I had a bunch of other things that I had to deal with. I understand that this project is important to...
.NET 6.0
Warning: Package 'Mono.Reflection 1.1.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project....
Is this project still alive?
Hello, In .Net5 Framework, I have a Xunit Test class like this: ``` using Pose; using System.IO; using Xunit; public class MyTest { public bool test(string path) { bool ret...
Hi, stumled in something looks like a bug. 1. Create simple app: ``` using System; using Pose; namespace HelloWorld { class Hello { static void Main(string[] args) { Shim dtShim...
I'm trying to get a basic sample working and I'm having difficulties. So, I added this test case to the existing unit tests: ```csharp [TestMethod] public void TestReplace2() { var...
I tried to make a function `serialPortC.Open()` throw an exception in that way : `Shim shimserialPortCOpen = Shim.Replace(() => serialPortC.Open()).With(delegate (SerialPort @this) { throw new Exception(); });` to check after...