public void GetName_NameViaCtor_ReturnsName() { var attribute = new DriverAttribute("TestDriver"); var driverInfo = attribute.CreateDriverInfo(typeof(DriverAttributeTests)); Assert.Equal("TestDriver", driverInfo.Name); }
public void GetVersion_VersionNull_ReturnsAssemblyVersion() { var attribute = new DriverAttribute("TestDriver"); var driverInfo = attribute.CreateDriverInfo(typeof(DriverAttributeTests)); Assert.Equal(typeof(DriverAttributeTests).Assembly.GetName().Version.ToString(), driverInfo.Version); }
public void GetName_NameNull_ReturnsTypeFullName() { var attribute = new DriverAttribute(); var driverInfo = attribute.CreateDriverInfo(typeof(DriverAttributeTests)); Assert.Equal(typeof(DriverAttributeTests).FullName, driverInfo.Name); }
public void GetVersion_VersionViaCtor_ReturnsVersion() { var attribute = new DriverAttribute("TestDriver") { Version = "1.0" }; var driverInfo = attribute.CreateDriverInfo(typeof(DriverAttributeTests)); Assert.Equal("1.0", driverInfo.Version); }