public async Task TestGetInstanceId() { SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator(); string instId = await gen.GenerateInstanceId(); Assert.AreEqual("foo", instId); }
public void TestGetInstanceId() { SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator(); string instId = gen.GenerateInstanceId(); Assert.AreEqual("foo", instId); }
public async Task TestGetInstanceIdFromCustomSystemProperty() { SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator(); gen.SystemPropertyName = "blah.blah"; string instId = await gen.GenerateInstanceId(); Assert.AreEqual("goo", instId); }
public void TestGetInstanceIdWithPostpend() { SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator(); gen.Postpend = "2"; string instId = gen.GenerateInstanceId(); Assert.AreEqual("foo2", instId); }
public async Task TestGetInstanceIdWithPrependAndPostpend() { SystemPropertyInstanceIdGenerator gen = new SystemPropertyInstanceIdGenerator(); gen.Prepend = "1"; gen.Postpend = "2"; string instId = await gen.GenerateInstanceId(); Assert.AreEqual("1foo2", instId); }