예제 #1
0
파일: Form2.cs 프로젝트: LiJing96/ASP.NET
        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();
                }
            }
        }
예제 #2
0
        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) }
                );
        }
예제 #3
0
        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) }
                );
        }
예제 #4
0
        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) }
                );
        }
예제 #5
0
 public void DadoQueDesejoObterOAcoplamentoEferenteDeTodosOsTiposDesseAssembly()
 {
     resultingMetric = Ce.For(GetType().Assembly);
 }
예제 #6
0
 public void QuandoDesejoObterSeuAcoplamentoEferente()
 {
     resultingMetric = Ce.For(workingType);
 }
예제 #7
0
 private void Ce_Click(object sender, EventArgs e)
 {
     Ce form2 = new Ce();
     form2.Show();
 }
예제 #8
0
 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() + ";]");
 }