public void MemberNameIsEqualReturnsFalseWhenTypeNameIsDifferent() { MemberName lhs = new MemberName("type1", "method"); MemberName rhs = new MemberName("type2", "method"); Assert.IsFalse(lhs.Equals(rhs)); }
public void MemberNameIsEqualReturnsTrueWhenNameAndTypeAreSame() { MemberName lhs = new MemberName("type", "member"); MemberName rhs = new MemberName("type", "member"); Assert.IsTrue(lhs.Equals(rhs)); }
private string GetWhere() { string where = ""; string query = Request.Url.Query; if ((!MemberName.Equals("")) || MemberName != null) { where += "&MemberName=" + BLL.Util.EscapeString(MemberName); } where += "&npd=1&random=" + (new Random()).Next().ToString(); return(where); }
public void MemberNameIsEqualsReturnsFalseWhenMemberNameIsNull() { MemberName lhs = new MemberName("type", "Member"); Assert.IsFalse(lhs.Equals(null)); }
public override bool CanOverride(AutoGenerateContext context) { return(context.ParentType == Type && MemberName.Equals(context.GenerateName, StringComparison.OrdinalIgnoreCase)); }
public bool Equals(ValueMemberValue other) => (MemberName.Equals(other.MemberName) && (ValueType?.Equals(other.ValueType) ?? false)) ? Object.Equals(this.Value, other.Value) : false;