Possible to write unit tests for plugins?

Hello there,

Is there a way to write Unit Tests for Oxide Plugins? I'm a Java Developer and I normally I would do something similar to this:

  @Test
  public void do_random_test() {
    // Mock due initialization
    SuperPlugin sp = mock(SuperPlugin.class);
    // This is a pure function that gets the display name from the BasePlayer, calling the real
    // method.
    when(sp.transformPlayer(any(BasePlayer.class))).thenCallRealMethod();
    // Mocking the BasePlayer.
    BasePlayer bp = mock(BasePlayer.class);
    when(bp.getDisplayName()).thenReturn("SUPER PLAYER");

    // Asserting the results.
    Assert.assertThat(sp.transformPlayer(bp), is("SUPER MEGA PLAYER"));
  }​

But C# looks like another beast. I tried something similar (using the Moq library) and got nothing. Should I implement a Facade/Adapter pattern? Is it even possible in a Oxide Plugin?

At the moment, not really. Oxide wasn't really build with that in mind originally as far as I know. uMod on the other hand has unit tests and a mock server available for plugins to utilize, but it isn't released yet.

Thanks for the reply Wulf, that's great news! I'm looking forward for it! For now, I will focus on pure functions in a Custom Class copy'n'pasting in the Plugin implementation.