Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestFixture]
- public class DebugUtilsTests
- {
- [Test]
- public void GetCallerName_ReturnsProperName()
- {
- var actual = Deep1();
- Assert.AreEqual($"{nameof(DebugUtilsTests)}.{nameof(Deep3)}", actual);
- }
- private string Deep1() => Deep2();
- private string Deep2() => Deep3();
- private string Deep3() => Deep4();
- private string Deep4() => DebugUtils.GetCallerName();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement