@AliBazzi , thank you for passing along the issue with the Lazy method and for fixing it! I added a test to ensure that calling RedisOptions.Multiplexer isn't creating a new Multiplexer each time. I'm using System.Runtime.CompilerServices to expose the internal methods to the test project and XUnit's Assert.Same to check reference equality.
Hi @RyanWChild
It's Ok, I will not add a test case for a code that will not change virtually
So I will skip this PR
Thank you for taking the time though to open it
@AliBazzi , thank you for passing along the issue with the Lazy method and for fixing it! I added a test to ensure that calling RedisOptions.Multiplexer isn't creating a new Multiplexer each time. I'm using
System.Runtime.CompilerServices
to expose the internal methods to the test project and XUnit'sAssert.Same
to check reference equality.