Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim8y committed Jun 7, 2024
1 parent 77a969f commit ecfaa8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions tests/Neo.Plugins.RpcServer.Tests/UT_RpcServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public void TestSetup()
_rpcServer = new RpcServer(_systemMock.Object, RpcServerSettings.Default);
}

// [TestMethod]
// public void TestCheckAuth_ValidCredentials_ReturnsTrue()
// {
// var context = new DefaultHttpContext();
// context.Request.Headers["Authorization"] = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes("testuser:testpass"));
// var result = _rpcServer.CheckAuth(context);
// Assert.IsTrue(result);
// }
[TestMethod]
public void TestCheckAuth_ValidCredentials_ReturnsTrue()
{
var context = new DefaultHttpContext();
context.Request.Headers["Authorization"] = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes("testuser:testpass"));
var result = _rpcServer.CheckAuth(context);
Assert.IsTrue(result);
}
}
}
2 changes: 1 addition & 1 deletion tests/Neo.VM.Tests/UT_ReferenceCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void TestNegativeReferenceCounter()
referenceCounter.AddStackReference(copyArray);
Assert.AreEqual(2, referenceCounter.Count);
referenceCounter.RemoveStackReference(copyArray);
Assert.ThrowsException<InvalidOperationException>(()=> referenceCounter.CheckZeroReferred());
Assert.ThrowsException<InvalidOperationException>(() => referenceCounter.CheckZeroReferred());
}
}
}

0 comments on commit ecfaa8a

Please sign in to comment.