I am attempting to ensure that hours are not off minutes I am not too concerned with but can't seem to break them off the code. Is there a way to allow the assertion to be 10 minutes off?
public void DeviceTimeAssertion()
{
IWebElement TimeTitle = _driver.FindElementByXPath("
(//android.widget.TextView[@content-desc='xpathvalue'])[1]");
string Time = DateTime.Now.ToString("MM/dd/yy h:mm tt");
//string Time = DateTime.Now.ToString("MM/dd/yy h:mm");
string ActText = TimeTitle.Text;
string ExpectedTime = "Check-in: " + Time;
//if (ExpText.Equals(ActText))
Assert.AreEqual(ExpectedTime, ActText);