private void Form2_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(SelectedID)) { textBox1.Enabled = false; CE myce = Ce.FirstOrDefault(c => c.ID == SelectedID); CE Myce = new CE(); foreach (CE item in Ce) { if (item.ID == SelectedID) { Myce = item; } } if (myce != null) { textBox1.Text = Myce.ID; textBox2.Text = Myce.Name; textBox3.Text = Myce.Evaluation; textBox4.Text = Myce.Score.ToString(); } } }
public void Ce_ForSingleArgCtorIgnoringOtherAssembliesTypes() { var ce = Ce.For <Samples.SingleArgCtor>() .Ignoring(typeof(Samples.SingleArgCtor).Assembly.Not()); ce.Value.Should().Be(1); ce.References.Should().Have.SameValuesAs( new[] { typeof(Samples.Fee) } ); }
public void Ce_ForSingleArgCtorIgnoringCommonTypes() { var ce = Ce.For <Samples.SingleArgCtor>() .Ignoring <System.Runtime.TargetedPatchingOptOutAttribute>() .Ignoring <System.Security.SecuritySafeCriticalAttribute>() .Ignoring <System.Runtime.ConstrainedExecution.ReliabilityContractAttribute>() .Ignoring <System.Runtime.CompilerServices.CompilerGeneratedAttribute>() .Ignoring <System.Object>() .Ignoring <System.Int32>() .Ignoring <System.String>() .Ignoring <System.Boolean>() .Ignoring <System.Type>(); ce.Value.Should().Be(1); ce.References.Should().Have.SameValuesAs( new[] { typeof(Samples.Fee) } ); }
public void Ce_ForSingleArgCtorIgnoringTypeSet() { var ce = Ce.For <Samples.SingleArgCtor>() .Ignoring(TypeSet.With( typeof(System.Runtime.TargetedPatchingOptOutAttribute), typeof(System.Security.SecuritySafeCriticalAttribute), typeof(System.Runtime.ConstrainedExecution.ReliabilityContractAttribute), typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute), typeof(object), typeof(int), typeof(string), typeof(bool), typeof(Type) )); ce.Value.Should().Be(1); ce.References.Should().Have.SameValuesAs( new[] { typeof(Samples.Fee) } ); }
public void DadoQueDesejoObterOAcoplamentoEferenteDeTodosOsTiposDesseAssembly() { resultingMetric = Ce.For(GetType().Assembly); }
public void QuandoDesejoObterSeuAcoplamentoEferente() { resultingMetric = Ce.For(workingType); }
private void Ce_Click(object sender, EventArgs e) { Ce form2 = new Ce(); form2.Show(); }
public override string ToString() { return("[Rc=" + Rc.ToString() + "; Te=" + Te.ToString() + "; Cm=" + Cm.ToString() + "; Ce=" + Ce.ToString() + "; Jn=" + Jn.ToString() + "; K=" + K.ToString() + "; Km=" + Km.ToString() + "; Tm=" + Tm.ToString() + ";]"); }